package common

import "time"

const (
	ResponseError = iota - 1
	ResponseBad
	ResponseSuccess
	// Enable 启用
	Enable = 1
	// Disable 禁用
	Disable               = 0
	PassWordMD5Key        = "51201"
	VarietyOfDishes       = "1" //菜品分类
	PackageClassification = "2" //套餐分类
	ImgURL                = "http://127.0.0.1:8080/stack/Img/"
)

const (
	UserLoginBad            = "登陆失败"
	LoginBadUserNameError   = "用户名错误"
	LoginBadPwdError        = "密码错误"
	UserIsLocking           = "用户已锁定不可登陆,联系管理员"
	LoginSuccess            = "登陆成功"
	UserLogout              = "退出登录成功"
	AddError                = "新增失败"
	UserIsExistence         = "用户已存在"
	FormatError             = "格式错误"
	ReError                 = "匹配失败"
	AddSuccess              = "新增成功"
	SeverBad                = "服务器开小差了"
	InsufficientPermissions = "权限不足"
	FindSuccess             = "查找成功"
	FindError               = "查找失败"
	ValueIsEmpty            = "没有数据"
	ModifySuccess           = "修改成功"
	ModifyError             = "修改失败"
	IsExistence             = "已存在"
	DeleteError             = "删除失败"
	DeleteSuccess           = "删除成功"
)

const (
	Hour = time.Hour
	Day  = Hour * 24
	Week = Day * 7
)
